<?php

class Pages_IndexController extends Alyce_Controller_Action
{

    public function init()
    {
        /* Initialize action controller here */
    }

    public function indexAction()
    {
        $req = $this->getRequest();
        $params = $req->getParams();
        
        $obj = new Application_Model_Objects;       
        
        $page = $obj->getObject($params['alias']);        
                    
            $this->view->title=$page["title"];
            $this->view->textright = $page["additionaltext"];
            $this->view->textleft=$page["maintext"];
            $this->view->pageId = $page["id"];
        
        if ($this->isAdmin()){
            $this->view->isAdmin=true;
        }
        
    }
    public function editAction(){
        $req = $this->getRequest();
        print_r($req);
    }


}

